package com.yuanfeng.userms.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yuanfeng.commoms.util.querypage.PageHelper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ShopStoreInfoVO extends PageHelper {
    private Integer storeId;

    @NotNull(message = "店铺名称不可为空")

    private Integer id;
    private String storeName;

    private Integer shopId;

    private String shopName;

    private String userId;

    @NotNull(message = "门店管理员账户不可为空")
    private String userName;

    private String userMobile;

    private String userPassword;

    private String comfirmPassword;

    @NotNull(message = "地址信息不可为空")
    private Integer provinceId;

    @NotNull(message = "地址信息不可为空")
    private Integer cityId;

    @NotNull(message = "地址信息不可为空")
    private Integer areaId;

    @NotNull(message = "地址信息不可为空")
    private String storeAddress;

    @NotNull(message = "门店经度信息不可为空")
    private String longitude;

    @NotNull(message = "门店纬度信息不可为空")
    private String latitude;

    @NotNull(message = "门店联系方式不可为空")
    private String storeContact;

    @NotNull(message = "门店营业时间不可为空")
    private String openingHours;

    private String trafficRoute;

    private Integer storeState;

    private String registerTime;

    private String storeImage;

    private List<String> storeImageList;

    private String token;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private String userLastloginTime;

    private Integer userCountLogin;

    private Integer userIsNew;

    public ShopStoreInfoVO( String userId) {
        this.userId = userId;
    }
}
